[IOEMU] Process reset requests before returning control to the guest.
authorIan Campbell <ian.campbell@xensource.com>
Wed, 3 Jan 2007 13:55:53 +0000 (13:55 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Wed, 3 Jan 2007 13:55:53 +0000 (13:55 +0000)
commit49f1cd42a181a4123c28e8262bc3c219e2dc74d4
tree5e3228aaa01076cc9185d01e54811282c69f5317
parent30bc7b0ff1c01a935705ea8bc7d6230dbc175c10
[IOEMU] Process reset requests before returning control to the guest.

Since 12899:4ae4bdee00e Xen only pays attention the first shutdown or
reboot request for a domain.

When a reset if requested we need to make the SCHEDOP_remote_shutdown
hypercall before we return control to the guest so that it wins the
"race" with the heuristic in xen/arch/x86/hvm/hvm.c:hvm_vcpu_down()
which causes a powerdown.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
tools/ioemu/target-i386-dm/helper2.c